package cn.zwy.util.ui
{
	import cn.zwy.comp.AlertSpark;
	
	import mx.core.FlexGlobals;
	import mx.managers.PopUpManager;

	/**
	 * 作者:zhaoweiyong
	 * 時間:2017-5-13 19:05:37
	 * 描述:弹框工具类
	 **/
	public class Dialog
	{
		public function Dialog()
		{
		}
		
		public static function info(title:String, message:String):void{
			var alert:AlertSpark = new AlertSpark();
			alert.title = title;
			alert.message = message; 
			PopUpManager.addPopUp(alert,FlexGlobals.topLevelApplication.systemManager,true);
			PopUpManager.centerPopUp(alert);
		}
	}
}